package com.agritech.strategy;

public class HumidityBasedStrategy implements PathStrategy {
    @Override
    public void planPath(String environmentInfo) {
        System.out.println("执行基于湿度的路径规划策略，环境信息: " + environmentInfo);
        // 模拟根据湿度调整路径
        if (environmentInfo.contains("湿度过高")) {
            System.out.println("检测到湿度过高，调整路径: 避开潮湿区域，选择干燥路径");
        } else {
            System.out.println("湿度正常，按标准路径前进");
        }
    }
}